package com.a3dweijing.wetouch2.datasave;

import com.a3dweijing.wetouch2.bean.User;
import com.amap.api.location.AMapLocation;

/**
 * Created by Yxd on 2015/12/28.
 */
public class Singleton
{
    private static Singleton singleton;
    
    private User user;
    
    private Boolean isfrist = true;
    
    private AMapLocation location;
    
    public AMapLocation getLocation()
    {
        return location;
    }
    
    public void setLocation(AMapLocation location)
    {
        this.location = location;
    }
    
    private Singleton()
    {
    }
    
    public synchronized static Singleton getInstance()
    {
        if (singleton == null)
        {
            singleton = new Singleton();
        }
        return singleton;
    }
    
    public User getUser()
    {
        return user;
    }
    
    public void setUser(User user)
    {
        this.user = user;
    }
    
    public Boolean getIsfrist()
    {
        return isfrist;
    }
    
    public void setIsfrist(Boolean isfrist)
    {
        this.isfrist = isfrist;
    }
}
